const { Controller } = require('../../../../zsjs');

class Index extends Controller {
  async index() {
    let readme = await this.view.load('../README.md', true);
    readme = this.view.md.render(readme);
    readme = readme.replace('</p>', '</p><hr>');
    this.assign('title', 'Kevin');
    this.assign('readme', readme);
    await this.fetch();
  }

  async hello() {
    await this.display(`<div style="font-size:50px;">一个简单的NodeJS后端框架 ——  zsjs !</div>`);
  } 
}

module.exports = Index;